<template>
  <div class="shoppingcart-box">
    <div class="fixed">
      <div class="shoppingcart-header">
        <div class="shoppingcart-left">
          <span class="iconfont icon-zuojiantou"></span>
          <span>我想要的</span>
        </div>
        <div class="shoppingcart-right" style="font-size:.14rem">取消</div>
      </div>
      <Promise />
    </div>
    <div class="wrap">
      <div class="discount-rule">
        <div>
          <h5>合并下单优惠</h5>
          <p><span>省</span> 节省1笔运费，0元运费商品不适用</p>
        </div>
        <div style="font-size: 0.1rem; color: #4c4b4f">规则 ></div>
      </div>
      <div class="goods">
        <div class="goods-img">
          <img src="../../../assets/imgs/1.jpg" alt="" />
        </div>
        <div class="goods-info">
          <p class="goods-name" style="line-height: 0.2rem">
            adidas Pro Bounce 2019 黑
          </p>
          <p class="goods-size">42 数量 X1</p>
          <div class="channel">渠道：普通发货 | 约5~6天到货</div>

          <div class="goods-price">
            <span class="logo">得物</span>&nbsp;<span
              class="rmb"
              style="font-size: 0.1rem"
              >¥</span
            >&nbsp;<span class="discount">679</span>
            <p>分期12期，最低月付61.45元</p>
          </div>
        </div>
        <div class="check">
          <van-checkbox v-model="checked"></van-checkbox>
        </div>
      </div>
    </div>
    <div class="account">
        <div class="total-money">合计：<span>
          <!-- ¥{{totalMoney()}} -->
          </span></div>
        <div class="account-button">
            <input type="button" value="结算">
        </div>
    </div>
  </div>
</template>

<script>
import Vue from "vue";
import { Checkbox, CheckboxGroup } from "vant";
import mouth from "../../../../public/utils/mouth";

Vue.use(Checkbox);
Vue.use(CheckboxGroup);
import Promise from "../view-com/promise.vue";
export default {
  data() {
    return {
      checked: true,
    };
  },
  name: "Shoppingcart",
  components: {
    Promise,
  },
  methods: {
   
  },
  // created(){
  //   this.addshopcart();
  // }
};
</script>

<style scoped>
@import url("../../../assets/iconfont/iconfont.css");
.fixed {
  width: 100%;
  height: 0.92rem;
  position: fixed;
  top: 0;
  z-index: 10;
  padding: 0 0.17rem;
  background-color: #fff;
  box-sizing: border-box;
}

.shoppingcart-header {
  height: 0.54rem;
  display: flex;
  justify-content: space-between;
  line-height: 0.54rem;
}

.icon-zuojiantou {
  font-size: 0.18rem;
  margin-right: 0.18rem;
}

.wrap {
  padding: 0.08rem 0.1rem 0 0.1rem;
  background-color: #f1f0f5;
  min-height: 5.6rem;
  margin-bottom: .72rem;
}
.discount-rule {
  margin: 0.92rem 0 0.08rem 0;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0.1rem;
}

.discount-rule h5 {
  font-size: 0.14rem;
}

.discount-rule span {
  width: 0.16rem;
  height: 0.16rem;
  border: solid 1px #dfced6;
  font-size: 0.1rem;
}

.discount-rule p {
  font-size: 0.1rem;
  color: #4c4b4f;
}

.goods {
  height: 1.56rem;
  padding: 0.16rem 0.1rem;
  margin-bottom: 0.08rem;
  display: flex;
  justify-content: space-between;
  background-color: #fff;
}
.goods-img {
  width: 0.96rem;
  height: 0.96rem;
  border: solid 1px #f1f1f5;
  margin-right: 0.14rem;
}

.goods-img img {
  width: 100%;
  height: 100%;
}

.goods-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.logo {
  width: 0.17rem;
  height: 0.17rem;
  background-color: #000;
  color: #fff;
  font-size: 0.12rem;
}

.goods-info .goods-price .discount {
  font-size: 0.14rem;
  font-weight: bold;
  margin-right: 0.07rem;
  
}

.check {
  padding-top: 0.46rem;
}

.goods-name{
    font-size: .12rem;

}

.goods-size{
    font-size: .12rem;
    color: #828186;
    margin-bottom: .17rem;
}

.channel{
    width: 1.57rem;
    height: .28rem;
    background-color: #f3f2f7;
    font-size: .1rem;
    text-align: center;
    line-height: .28rem;
    margin-bottom: .07rem;
}

.goods-price p{
   font-size: .1rem;
   margin-top: .1rem;
   color: #777777;
}

.account{
    width: 100%;
    height: .72rem;
    padding: 0 .14rem;
    position: fixed;
    bottom: 0;
}

.account .total-money{
    position: absolute;
    top: .21rem;
    font-size: .1rem;
}

.account .total-money span{
    font-size: .16rem;
    color: #ff273e;
}

.account .account-button{
    width: .96rem;
    height: .39rem;
    background-color: #00cacc;
    position: absolute;
    top: .09rem;
    right: 0.17rem;
    text-align: center;
    line-height: .39rem;
}

.account .account-button input{
  border: none;
  background-color: #00cacc;
  color: #fff;

}
</style>